<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="sec" uri="/WEB-INF/notLoggedIn.tld"%>
<%@ taglib prefix="loggedIn" uri="/WEB-INF/loggedIn.tld"%>
<div class="row-1">
	<h1 style="padding: 0;">
		<a class="logo" href="${pageContext.request.contextPath}/index.jsp">Бизнис
			Поинт</a><br>
			<span class="logo-text">Вашата точка за успешен бизнис</span>
			
	</h1>
	<div class="banner-header"></div>
	<sec:notLoggedIn>
		<div class="col-1 pull-right loginWrapper">
			<form id="loginForm"
				action="${pageContext.request.contextPath}/main.jsp" method="POST"
				name="loginForm">
				<div style="color: #0f0f0f;">
					<div class="pull-left">
						<p class="form_text login-label">Корисничко име</p>
						<div class="login-input-form pull-right">
							<input type="text" id="loginEmail" class="login-input"
								name="username">
						</div>
					</div>
					<br>
					<div class="pull-left">
						<p class="form_text login-label">Лозинка</p>
						<div class="login-input-form pull-right">
							<input type="password" id="loginPassword" name="password"
								class="login-input">
						</div>
					</div>
					<br> <input type="submit" onclick="" class="button-login"
						value="Најави се">
				</div>
			</form>
		</div>
	</sec:notLoggedIn>
	<loggedIn:isLoggedIn>
		<div class="pull-right">
			<p class="form_text">${user.fullName}</p>
			<div class="logged-user-wrapper">
				<a href="#" plain="true" class="change-password change-password-link"
					onclick="changePasswordDlg()">Промени лозинка</a>
				<div id="changePassDlg" class="easyui-dialog"
					style="width: 400px; height: 280px; padding: 10px 20px"
					closed="true" buttons="#dlg-buttons">
					<div class="ftitle margin-bottom-15">Промена на лозинка</div>
					<form id="changePassForm" method="post">
						<div class="fitem height-32">
							<label class="input-dialog-admin">Стара лозинка:</label> <input
								name="oldPassword" class="easyui-validatebox" required="true">
							<input name="userId" type="hidden" value="${user.id}">
						</div>
						<div class="fitem height-32">
							<label class="input-dialog-admin">Нова лозинка:</label> <input
								name="newPassword" class="easyui-validatebox" required="true">
						</div>
					</form>
				</div>
				<div id="dlg-buttons">
					<a href="#" class="easyui-linkbutton" iconCls="icon-ok"
						onclick="changePassword()">Зачувај</a> <a href="#"
						class="easyui-linkbutton" iconCls="icon-cancel"
						onclick="javascript:$('#changePassDlg').dialog('close')">Затвори</a>
				</div>
				<a class="change-password-link" style="font-weight: bold;"
					href="${pageContext.request.contextPath}/main.jsp?logout=true">Одјави
					се</a>
			</div>
		</div>
	</loggedIn:isLoggedIn>
	<!-- <form id="search-form" action="#" method="post"
		enctype="multipart/form-data">
		<fieldset>
			<div class="search-form">
				<input type="text" name="search" value="Type Keyword Here"
					onBlur="if(this.value=='') this.value='Type Keyword Here'"
					onFocus="if(this.value =='Type Keyword Here' ) this.value=''" /> <a
					href="#">Search</a>
			</div>
		</fieldset>
	</form> -->
</div>

